package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.inn.UserInnInfo;
import com.yanqu.road.entity.inn.UserDishes;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class UserInnBussiness {
    public static Map<Integer, UserDishes> getUserDishesMap(long userId) {
        return DaoHelper.getUserDishesDaoImpl().getUserDishesMap(userId);
    }

    public static UserInnInfo getUserCook(long userId) {
        return DaoHelper.getUserCookDaoImpl().getUserCookInfo(userId);
    }

    public static boolean addUserDishes(UserDishes userDishes) {
        return DaoHelper.getUserDishesDaoImpl().add(userDishes);
    }

    public static boolean updateUserDishes(UserDishes userDishes) {
        return DaoHelper.getUserDishesDaoImpl().update(userDishes);
    }

    public static boolean updateUserCook(UserInnInfo userCookInfo) {
        return DaoHelper.getUserCookDaoImpl().update(userCookInfo);
    }

    public static boolean addUserCook(UserInnInfo userCookInfo) {
        return DaoHelper.getUserCookDaoImpl().add(userCookInfo);
    }
}
